package com.sikao.app.dao;

import android.content.Context;

import com.sikao.app.bean.ArbitrationResultBean;
import com.sikao.app.net.OnNetBackListener;
import com.sikao.app.net.SpotsCallBack;
import com.squareup.okhttp.Response;

import static android.R.attr.action;

/**
 * Created by Administrator on 2016/8/24.
 */
public class SellerArbitrationResultModel extends BaseModel {


	public SellerArbitrationResultModel(Context context, OnNetBackListener listener) {
		super(context, listener);
	}


	@Override
	public void request(String data, boolean isShow) {
		String[] array = {"trade", "mall", "ApiSellerOrder", "sellerOrderStep", time, data};
		map = getMap(array);
		post(map, new SpotsCallBack<ArbitrationResultBean>(context, isShow) {

			@Override
			public void onSuccess(Response response, ArbitrationResultBean result) {
				onNetBackListener.netBack(result);
			}

			@Override
			public void onError(Response response, int code, Exception e) {
				onNetBackListener.netBack(null);
			}
		});
	}
}
